#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
    FILE *fp = fopen("log.txt", "w");

    pid_t id = fork();
    if (id == 0)
    {
        FILE *subfp = fopen("log.txt", "r");
        printf("inode:%d\n",subfp->_fileno);
    }
    return 0;
}